﻿DeleteInfoFn = function (row) {
    var deletesplit = "";
    for (var i = 0; i < row.length; i++) {
        if (row.length == 1) {
            deletesplit = row[i].data.ID;
        }
        else {

            if (i < (row.length - 1)) {
                deletesplit = row[i].data.ID + "," + deletesplit;
            }
            if (i == (row.length - 1)) {
                deletesplit = deletesplit + row[i].data.ID;
            }
        }
    }
    Ext.Ajax.request({
        url: "OrgnizationMag.aspx?action=Del",
        method: "POST",
        params: {
            deletesplit: deletesplit
        },
        success: function () {
            StorePage.load();
        },
        failure: function () {
            Ext.Msg.alert("提 示", "删除失败了!");
        }
    });
}
